package com.example.examsystem2.service.serviceImpl;

import com.example.examsystem2.entity.FillBlanksQuestions;
import com.example.examsystem2.mapper.FillBlanksQMapper;
import com.example.examsystem2.service.FillBlanksQService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class FillBlanksQServiceImpl implements FillBlanksQService {
    @Resource
    private FillBlanksQMapper fillBlanksQMapper;

    public void setFillBlanksQMapper(FillBlanksQMapper fillBlanksQMapper) {
        this.fillBlanksQMapper = fillBlanksQMapper;
    }

    @Override
    public int add_fill_blanks_question(FillBlanksQuestions fillBlanksQuestions) {
        return fillBlanksQMapper.add_fill_blanks_question(fillBlanksQuestions);
    }

    @Override
    public List<FillBlanksQuestions> get_fill_blanksQ_by_s_id(int s_id) {
        return fillBlanksQMapper.get_fill_blanksQ_by_s_id(s_id);
    }

    @Override
    public int update_fill_blanksQ_by_fb_id(FillBlanksQuestions fillBlanksQuestions) {
        return fillBlanksQMapper.update_fill_blanksQ_by_fb_id(fillBlanksQuestions);
    }

    @Override
    public int del_fill_blanksQ_by_fb_id(int fb_id) {
        return fillBlanksQMapper.del_fill_blanksQ_by_fb_id(fb_id);
    }

    @Override
    public List<FillBlanksQuestions> get_question_by_s_id_and_level(Map<String, Object> map) {
        return fillBlanksQMapper.get_question_by_s_id_and_level(map);
    }

    @Override
    public FillBlanksQuestions get_fbq_by_fb_id(int fb_id) {
        return fillBlanksQMapper.get_fbq_by_fb_id(fb_id);
    }
}
